import http from '@/utils/http'

//添加订单
export const addOrderAPI = (userid:any)=>{
return  http.post('/api/order/addOrder',{
  userid
})
}

//获取确认订单的信息

export const confirmOrderAPI = (userid:any,time:any)=>{
  return  http.get('/api/order/confirmOrder',{
    params:{
      userid,
      time
    }
  })
  }

   //支付时删除购物车选中的数据
 export const deleteCartItemAPI = (userid:any)=>{
  return  http.get(`/api/order/deleteCartItem`,{
    params:{
      userid
    }
  })
  } 
    